import fastJson.user.User;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature;

public class FastJsonTest
{
    public void toJsonString()
    {
        User user = new User("testFastJson001", 105);
        String text = JSON.toJSONString(user);
        System.out.println("fastjson test--> " + text);
    }
    public static void main(String[] args)
    {
        FastJsonTest test = new FastJsonTest();
        test.toJsonString();
    }
}
